public class demoForceChange{
  public static void main(String args[]){
     superGen <Integer> oa = new superGen<Integer>(100);
     derivedGen<Integer,String> ob = new derivedGen<Integer, String>(200,"Good");
     if ((superGen<Integer>)ob instanceof superGen)
       System.out.println("derivedGen object is changed to superGen");
    // if ((derivedGen<Integer,String>)oa instanceof derivedGen)
       //System.out.println("superGen object is changed to derivedGen");
  }
}